package com.ruoyi.finance.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.finance.domain.TCwDealPerDay;
import com.ruoyi.finance.mapper.TCwDealPerDayMapper;
import com.ruoyi.finance.service.ITCwDealPerDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author wish
 * @date 2021-06-24
 */
@Service
public class TCwDealPerDayServiceImpl implements ITCwDealPerDayService
{
    @Autowired
    private TCwDealPerDayMapper tCwDealPerDayMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TCwDealPerDay selectTCwDealPerDayById(Long id)
    {
        return tCwDealPerDayMapper.selectTCwDealPerDayById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tCwDealPerDay 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TCwDealPerDay> selectTCwDealPerDayList(TCwDealPerDay tCwDealPerDay)
    {
        return tCwDealPerDayMapper.selectTCwDealPerDayList(tCwDealPerDay);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tCwDealPerDay 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTCwDealPerDay(TCwDealPerDay tCwDealPerDay)
    {
        tCwDealPerDay.setCreateTime(DateUtils.getNowDate());
        return tCwDealPerDayMapper.insertTCwDealPerDay(tCwDealPerDay);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tCwDealPerDay 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTCwDealPerDay(TCwDealPerDay tCwDealPerDay)
    {
        tCwDealPerDay.setUpdateTime(DateUtils.getNowDate());
        return tCwDealPerDayMapper.updateTCwDealPerDay(tCwDealPerDay);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTCwDealPerDayByIds(Long[] ids)
    {
        return tCwDealPerDayMapper.deleteTCwDealPerDayByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTCwDealPerDayById(Long id)
    {
        return tCwDealPerDayMapper.deleteTCwDealPerDayById(id);
    }

    @Override
    public List<TCwDealPerDay> findAll(TCwDealPerDay tCwDealPerDay) {
        return tCwDealPerDayMapper.findAll(tCwDealPerDay);
    }

    @Override
    public List<TCwDealPerDay> suan(TCwDealPerDay tCwDealPerDay) {
        return tCwDealPerDayMapper.suan(tCwDealPerDay);
    }
}
